package com.bookmall.common.constant;

/**
 * 异常类型状态码
 * @Author 胡菜鸡
 * @Create 2022-04-02-17:25
 */
public class ExceptionTypeConstants {
    /** 用户名已存在异常 */
    public static final int USERNAME_EXIST = 501;

    /** 学生学号已存在异常 */
    public static final int STUDENT_ID_EXIST = 502;

    /** 手机号已存在异常 */
    public static final int PHONE_EXIST = 503;

    /** 账号不存在异常 */
    public static final int ACCOUNT_NOT_EXIST = 504;

    /** 密码错误异常 */
    public static final int PASSWORD_ERROR = 505;

    /** 商品上架失败异常 */
    public static final int BOOK_UP_FAIL = 506;

    /** 用户未登录异常 */
    public static final int USER_LOGOUT = 506;

    /** 订单提交错误 */
    public static final int ORDER_SUBMIT = 507;

    /** 订单保存错误 */
    public static final int ORDER_SAVE = 508;

    /** 商品库存不足错误 */
    public static final int PRODUCT_WARE_NO_STOCK = 509;

    /** 订单关闭失败错误 */
    public static final int ORDER_CLOSE_FAIL = 510;

    /** 支付状态修改失败 */
    public static final int ORDER_UPDATE_STATUS_FAIL = 511;

    /** 支付流水信息保存失败 */
    public static final int PAYMENT_INFO_SAVE_FAIL = 512;
}
